#!/bin/bash
# Zaitan Module - Beryl Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Interface'
RMOD_SUBCATEGORY='Desktop'
RMOD_NAME='Beryl'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.2'
RMOD_DESCRIPTION='Installs Beryl'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# Install Beryl

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update

aptitude install beryl-ubuntu
aptitude -y install emerald

cd /usr/share/zaitan
wget -c http://hendrik.kaju.pri.ee/ubuntu/pool/feisty/screenlets/screenlets-0.0.7-11pre0.0.8_i386.deb
wget -c http://hendrik.kaju.pri.ee/ubuntu/pool/feisty/screenlets/screenlets-core-0.0.7-11pre0.0.8_i386.deb
wget -c http://hendrik.kaju.pri.ee/ubuntu/pool/feisty/screenlets/screenlets-extra-0.0.7-17_i386.deb
wget -c http://hendrik.kaju.pri.ee/ubuntu/pool/feisty/screenlets/screenlets-utils-0.0.7-14_i386.deb

dpkg -i screenlets-0.0.7-11pre0.0.8_i386.deb
dpkg -i screenlets-core-0.0.7-11pre0.0.8_i386.deb
dpkg -i screenlets-extra-0.0.7-17_i386.deb
dpkg -i screenlets-utils-0.0.7-14_i386.deb

apt-get -f install


echo "export AWT_TOOLKIT=MToolkit" | tee -a /etc/profile



echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

